﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Quba.Entities.Database.General
{
    public class BaseEntity
    {
        public BaseEntity()
        {
            CreatedBy = "System";
            ModifiedBy = "System";
            CreatedOn = DateTime.Now;
            ModifiedOn = DateTime.Now;
        }

        public int Id { get; set; }

        [Required]
        public string CreatedBy { get; set; }

        [Required]
        public DateTime CreatedOn { get; set; }

        [Required]
        public string ModifiedBy { get; set; }

        [Required]
        public DateTime ModifiedOn { get; set; }
    }
}